package com.lvmama.comm.sync.po;

import java.io.Serializable;
import java.util.Date;

/**
 * 同步消息.
 * @author zuoxiaoshuai
 */
public class SyncMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7547010915346891201L;

	/** 主键. */
	private Long messageId;
	
	/**
	 * 对象ID
	 */
	private Long objectId;
	
	/** 消息实体. */
	private String entryName;
	
	/** 对象类型. */
	private String objectType;
	
	/** 事件类型. */
	private String eventType;
	
	/** 内容. */
	private String objectContent;
	
	/** 创建时间. */
	private Date createTime;
	
	/**
	 * 生产者beanID
	 */
	private String producer;

	public Long getMessageId() {
		return messageId;
	}

	public void setMessageId(Long messageId) {
		this.messageId = messageId;
	}

	public Long getObjectId() {
		return objectId;
	}

	public void setObjectId(Long objectId) {
		this.objectId = objectId;
	}


	public String getEntryName() {
		return entryName;
	}

	public void setEntryName(String entryName) {
		this.entryName = entryName;
	}

	public String getObjectType() {
		return objectType;
	}

	public void setObjectType(String objectType) {
		this.objectType = objectType;
	}

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	public String getObjectContent() {
		return objectContent;
	}

	public void setObjectContent(String objectContent) {
		this.objectContent = objectContent;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getProducer() {
		return producer;
	}

	public void setProducer(String producer) {
		this.producer = producer;
	}

	@Override
	public String toString() {
		return "SyncMessage [messageId=" + messageId + ", objectId=" + objectId
				+ ", entryName=" + entryName + ", objectType=" + objectType
				+ ", eventType=" + eventType + ", objectContent="
				+ objectContent + ", createTime=" + createTime + ", producer="
				+ producer + "]";
	}
}
